import { request } from '@/utils'

export async function getAppConfig() {
    return await request({
        url: '/config/app',
        method: 'get',
    });
}

export async function saveAppConfig(config) {
    return await request({
        url: '/config/app',
        method: 'post',
        data: config
    });
}

export async function getSiteConfig() {
    return await request({
        url: '/config/site',
        method: 'get',
        withoutToken: true
    });
}